using UnityEngine;
using System.Collections;

public class ButtonGlow : MonoBehaviour {

	public Color32 hover;
	public Color32 normal;
	
	private TextMesh mesh;
	
	void Awake() {
		mesh= gameObject.GetComponent<TextMesh>();	
		mesh.renderer.material.color= normal;
	}
	
	void OnMouseOver() {
		mesh.renderer.material.color= hover;
	}
	
	void OnMouseExit() {
		mesh.renderer.material.color= normal;
	}
}
